package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseApp;
import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseLocation;
import com.njtoyo.taxi.admin.mapper.master.enums.MediaType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Advertise对象", description = "")
public class Advertise implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;

    @ApiModelProperty(value = "媒体图片")
    private String mediaUrl;

    @ApiModelProperty(value = "0:wxapp,1:driverapp,2:customerapp,4:pointmarket")
    private AdvertiseApp app;

    private Long regionId;

    @ApiModelProperty(value = "运营区Id")
    private Long cantonId;

    @ApiModelProperty(value = "0:startup,1:banner,2:index,3:other,4:online_paid 5home_banner")
    private AdvertiseLocation location;

    @ApiModelProperty(value = "跳转地址")
    private String pointTo;

    @ApiModelProperty(value = "0:webredirect,1:inappredirect,2:view")
    private AdvertiseCategory category;

    private Integer cityId;

    private Integer sortBy;

    private Boolean isActive;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;



    @ApiModelProperty(value = "广告类型")
    private MediaType mediaType;


    @ApiModelProperty(value = "播放时长")
    private Integer mediaDuration;


    @ApiModelProperty(value = "播放次数")
    private Integer showTimes;


    @ApiModelProperty(value = "场景间隔")
    private Integer adShowAfter;

    @ApiModelProperty(value = "间隔时间")
    private Integer gapDuration;


}
